package cn.iocoder.yudao.module.trade.dal.dataobject.order;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.*;

import java.io.Serial;
import java.util.List;

/**
 * 订单配送信息(TradeOrderDelivery)实体类
 *
 * @author makejava
 * @since 2025-03-22 07:17:48
 */
@TableName(value = "trade_order_delivery", autoResultMap = true)
@KeySequence("trade_order_delivery_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TradeOrderDeliveryDO extends BaseDO {
    @Serial
    private static final long serialVersionUID = -52788585899309821L;
    /**
     * 编号
     */
    private Long id;
    /**
     * 订单编号
     */
    private String orderNo;
    /**
     * 收件人名称
     */
    private String name;
    private Long pickupInfoId;
    /**
     * 收件人手机号
     */
    private String mobile;
    /**
     * 区域编号
     */
    private Integer areaId;
    /**
     * 门店详细地址
     */
    private String detailAddress;
    /**
     * 类型
     */
    private Integer type;
    private String logisticsNo;
    /**
     * 备注
     */
    private String remark;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> deliveryPic;
    /**
     * 状态
     */
    private Integer status;

}

